package com.sakila.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RootAction {
	
/*	@RequestMapping(value = "/")
    public String root() {		
        return "redirect:member/index";
    }*/
	
	@RequestMapping(value="/")
	public String root(){
		return "index";
	}
	
	@RequestMapping(value={"/staff"})
	public String staffRoot1(){
		return "redirect:/staff/";
	}
	
	@RequestMapping(value={"/staff/", "/staff/index"})
	public String staffRoot2(){
		return "staff/index";
	}
	
	@RequestMapping(value="/errorPage")
	public String dispatcherErrorPage(){
		return "error";
	}
}
